package cn.edu.wit.beans;

public class Test {
	
	public static void main(String[] args) {
		
		int type = -1;
		
		String sql = "update tb_classes set ";
		if(type==1){
			sql = sql + "count=count+1 ";
		}
		if(type==-1){
			sql = sql + "count=count-1 ";
		}
		sql = sql+" where cid=?";
		
		System.out.println(sql);
	}

}
